/** 获取设置窗口title */
export const useTitle = ()=>{
    const setTitle = (title: string)=>document.title = title;
    const getTitle = ()=>document.title;
    return {
        setTitle,
        getTitle
    }
}